# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=go-pingu
_pkgbin=pingu
pkgver=0.0.3
pkgrel=0
pkgdesc="Ping command but with pingu"
url="https://github.com/sheepla/pingu"
arch="all"
license="MIT"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/sheepla/pingu/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgbin-$pkgver"

build() {
	go build -o bin/$_pkgbin \
		-ldflags "-X main.appVersion=$pkgver -X main.appRevision="
}

check() {
	go test ./...
}

package() {
	install -Dm755 bin/$_pkgbin "$pkgdir"/usr/bin/$_pkgbin
}

sha512sums="
d75d20bebc5cd619874e08dd30304b6564f1ee4a469283ec74fb283fe67127346a4e030f254ccd9e3537dfadb1dc34e75ab6234ed185a6ba1ace721c599201f6  go-pingu-0.0.3.tar.gz
"
